<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .outer-box {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: space-between;
        }

        .outer-box .left-nav {
            background-color: rgb(49, 49, 53);
            width: 20%;
        }

        .outer-box .left-nav .logo {
            color: #ccc;
            font-size: 20px;
            line-height: 50px;
            border-bottom: 1px solid gray;
        }

        .outer-box .left-nav .admin,
        .outer-box .left-nav .exa {
            line-height: 60px;
            border-bottom: 1px solid gray;
        }

        .outer-box .left-nav>div,
        .outer-box .left-nav ul li {
            padding-left: 20px;
            color: #ccc;
        }

        .outer-box .left-nav ul li {
            display: flex;
            padding-right: 20px;
            justify-content: space-between;
            line-height: 40px;
            border-radius: 5px;
            cursor: pointer;
        }

        .outer-box .left-nav ul li:hover {
            background-color: rgb(16, 98, 239);
        }

        .outer-box .right-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .outer-box .right-content .header {
            height: 50px;
            border-bottom: 1px solid gray;
        }

        .outer-box .right-content .header .header-left {
            width: 400px;
            color: gray;
            float: left;
            display: flex;
            line-height: 50px;
            justify-content: space-around;
        }

        .outer-box .right-content .header .header-left input {
            padding-left: 10px;
        }

        .outer-box .right-content .header .header-right {
            width: 200px;
            float: right;
            color: gray;
            display: flex;
            line-height: 50px;
            justify-content: space-around;
        }

        .outer-box .right-content .title {
            height: 60px;
            background-color: rgb(239, 236, 236);
            padding: 0 20px;
        }

        .outer-box .right-content .title .title-left {
            float: left;
            display: flex;
            line-height: 60px;
            justify-content: space-around;
        }

        .outer-box .right-content .title .title-right {
            float: right;
            line-height: 60px;
        }

        .outer-box .right-content .title .title-right span {
            color: rgb(26, 132, 174);
        }

        .outer-box .right-content .table-box {
            flex: 1;
            display: flex;
            flex-wrap: wrap;
        }

        .outer-box .right-content .table-box .table {
            width: 48%;
            height: 300px;
            border: 2px solid #ccc;
            margin: 0.5%;
            box-sizing: border-box;
            padding: 20px;
        }

        .outer-box .right-content .table-box .table table {
            width: 90%;
            text-align: center;
            line-height: 40px;
        }

        .outer-box .right-content .table-box .table4 .table-list {
            line-height: 60px;
        }

        .outer-box .right-content .table-box .table4 .table-list>div {
            border-bottom: 1px solid #ccc;
            display: flex;
            justify-content: space-between;
        }
    </style>
</head>

<body>
    <div class="outer-box">
        <div class="left-nav">
            <div class="logo">AdminLTE 3</div>
            <div class="admin">Alexander Pierce</div>
            <ul class="nav-list1">
                <li>
                    <div><span></span>Dashboard</div>
                    <div>
                        < </div>
                </li>
                <li>
                    <div><span></span>Widgets</div>
                    <div>
                        < </div>
                </li>
                <li>
                    <div><span></span>Charts</div>
                    <div>
                        < </div>
                </li>
                <li>
                    <div><span></span>UlElements</div>
                    <div>
                        < </div>
                </li>
                <li>
                    <div><span></span>Forms</div>
                    <div>
                        < </div>
                </li>
                <li>
                    <div><span></span>Tables</div>
                    <div>
                        < </div>
                </li>
            </ul>
            <div class="exa">EXAMPLES</div>
            <ul class="nav-list2">
                <li>
                    <div><span></span>Calendar</div>
                    <div>
                        < </div>
                </li>
                <li>
                    <div><span></span>Mailbox</div>
                    <div>
                        < </div>
                </li>
                <li>
                    <div><span></span>Pages</div>
                    <div>
                        < </div>
                </li>
                <li>
                    <div><span></span>Extras</div>
                    <div>
                        < </div>
                </li>
            </ul>
        </div>
        <div class="right-content">
            <div class="header">
                <div class="header-left">
                    <div>≡</div>
                    <div>Home</div>
                    <div>Contact</div>
                    <div><input type="search" placeholder="search"></div>
                </div>
                <div class="header-right">
                    <div>💬</div>
                    <div>🔔</div>
                    <div>💠</div>
                </div>
            </div>
            <div class="title">
                <div class="title-left">Dashboard v3 </div>
                <div class="title-right"><span>Home</span> /Dashboard v3 </div>
            </div>
            <div class="table-box">
                <div class="table table1"></div>
                <div class="table table2"></div>
                <div class="table table3">
                    <div class="table-title">Products</div>
                    <table>
                        <thead>
                            <tr>
                                <th>Products</th>
                                <th>Price</th>
                                <th>Sales</th>
                                <th>More</th>
                            </tr>
                        </thead>
                        <tbody></tbody>
                    </table>
                </div>
                <div class="table table4">
                    <div class="table-title">Online Store Overview</div>
                    <div class="table-list"></div>
                </div>
            </div>
        </div>
    </div>
</body>

</html>
<script src="./js/ajax.js"></script>
<script src="./js/mock.js"></script>
<script src="./js/data1.js"></script>
<script src="./js/data2.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.4.0/echarts.js"></script>
<script>
    const table1 = document.querySelector('.table1');
    const table2 = document.querySelector('.table2');
    const table3 = document.querySelector('.table3 tbody');
    const table4 = document.querySelector('.table4 .table-list');
    let e1 = echarts.init(table1);
    e1.setOption({
        title: {
            text: 'Online Store Visitors',
            left: 'center',
        },
        xAxis: {
            data: ['18th', '20th', '22th', '24th', '26th', '28th', '30th']
        },
        yAxis: {
            splitLine: {
                show: true
            }
        },
        series: [
            {
                name: 'this week',
                type: 'line',
                data: [100, 120, 170, 165, 180, 178, 160],
                symbolSize: 5,
                symbol: 'circle',
                smooth: true,
                itemStyle: {
                    normal: {
                        color: 'blue',
                        lineStyle: { width: 2 },
                        shadowBlur: 5,
                        shadowColor: '#188df0'
                    }
                }
            },
            {
                name: 'next week',
                type: 'line',
                data: [60, 80, 70, 65, 80, 78, 100],
                symbolSize: 5,
                symbol: 'circle',
                smooth: true,
                itemStyle: {
                    normal: {
                        color: 'black',
                        lineStyle: { width: 2 },
                        shadowBlur: 5,
                        shadowColor: '#188df0'
                    }
                }
            }
        ],
        legend: {
            top: 25,
            right: 10,
        },

    });
    let e2 = echarts.init(table2);
    e2.setOption({
        title: {
            text: 'Sales',
            left: 'center',
        },
        xAxis: {
            data: ['JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC']
        },
        yAxis: {
            splitLine: {
                show: true
            }
        },
        series: [
            {
                name: 'this year',
                type: 'bar',
                data: [1000, 2000, 3000, 2500, 2800, 2500, 3000],
                symbolSize: 5,
                symbol: 'circle',
                smooth: true,
                itemStyle: {
                    normal: {
                        color: 'blue',
                        lineStyle: { width: 2 },
                        shadowBlur: 5,
                        shadowColor: '#188df0'
                    }
                }
            },
            {
                name: 'next year',
                type: 'bar',
                data: [700, 1800, 2800, 2000, 1800, 1500, 2000],
                symbolSize: 5,
                symbol: 'circle',
                smooth: true,
                itemStyle: {
                    normal: {
                        color: '#ccc',
                        lineStyle: { width: 2 },
                        shadowBlur: 5,
                        shadowColor: '#188df0'
                    }
                }
            }
        ],
        legend: {
            top: 25,
            right: 10,
        },

    });
    table3.innerHTML = str1;
    table4.innerHTML = str2;

</script>